

<#-- 
 
 crea una clase para un listado_...aspx para la tabla  ${table}...
 Author : Luis Molina...
 
 -->
<#-- variables used internally by the generator... -->
<#assign nameFile="listado_${table}">
<#assign extensionFile="aspx.cs">
<#assign languageGenerated="c#">
<#assign description="description">
<#assign targetDirectory="${table}_dir">
<#assign appliesToAllTables="true">
<#-- END variables used internally by the generator... -->


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;


namespace ${project}.${table}_dir
{
    public partial class listado_${table} : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (HttpContext.Current.Session["admin${project}"] != null)
            {
            if (!Page.IsPostBack)
            {
                List<${table}> lista = new List<${table}>();
                lista = ${table}.getList();
                Repeater1.DataSource = lista;
                Repeater1.DataBind();
            }
			}
            else
            {
                Response.Redirect("../admin/login.aspx");
            }
        }
        protected void btnBuscar_Click(object sender, EventArgs e)
        {
            List<${table}> lista = new List<${table}>();
            lista = ${table}.getListBySearch(txtBusqueda.Text);
            Repeater1.DataSource = lista;
            Repeater1.DataBind();
        }

    }
}
